package com.ryskoo.permission.rolemenurel.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "PMS_ROLE_MENU_REL")
public class RoleMenuRelPO extends BasicPO {

    private static final long serialVersionUID = -1775839389018594485L;
    /**
     * 角色ID
     */
    @Column(name = "role_id", length = 32)
    private String roleId;
    /**
     * 菜单ID
     */
    @Column(name = "menu_id", length = 32)
    private String menuId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    @Override
    public String toString() {
        return new StringBuffer(super.toString())
                .append("RolePermissionRelPO [roleId=").append(roleId)
                .append(", menuId=").append(menuId).append("]").toString();
    }

}
